/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.behavioral.chain;

/**
 *
 * @author jmg
 */
public class ValidateNotDos extends Validator{

    @Override
    public void execute(String s) {
        String uno = "2";
        if(s.contains(uno)){
            throw new RuntimeException(s + "contine dos");
        }
        
    }
}